package com.ruoyi.workflow.untils;

import java.util.HashMap;
import java.util.Map;

public class JudgeConstant {

    // 质量评审角色Id
    public static final String MASS_JUDGE = "7";

    // 效率评审角色Id
    public static final String EFFICIENCY_JUDGE = "16";

    // 安全评审角色Id
    public static final String SAFETY_JUDGE = "8";

    // 现场评审角色Id
    public static final String SITE_JUDGE = "17";

    // 成本评审角色Id
    public static final String COST_JUDGE = "10";

    // 士气评审角色Id
    public static final String MORALE_JUDGE = "11";

    private static final Map<String, String> postToRoleMap;

    static {

        postToRoleMap = new HashMap<>();
        postToRoleMap.put(ImproveTypeConstants.MASS_POST_ID, MASS_JUDGE);
        postToRoleMap.put(ImproveTypeConstants.EFFICIENCY_POST_ID, EFFICIENCY_JUDGE);
        postToRoleMap.put(ImproveTypeConstants.SAFETY_POST_ID, SAFETY_JUDGE);
        postToRoleMap.put(ImproveTypeConstants.SITE_POST_ID, SITE_JUDGE);
        postToRoleMap.put(ImproveTypeConstants.COST_POST_ID, COST_JUDGE);
        postToRoleMap.put(ImproveTypeConstants.MORALE_POST_ID, MORALE_JUDGE);
        // 添加其他键值对
    }

    public static String getRoleId(String type) {
        return postToRoleMap.get(type);
    }

}
